from types import SimpleNamespace


def create_object_description():
    """
    该函数创建一个 SimpleNamespace 对象，包含各种常量的定义。
    """
    obj_description = SimpleNamespace(
        GBS=0x10000,
        ADDRESS=0x8000,
        MODES=0x4000,
        SSR=0x2000,
        PSR=0x1000,
        TRACK=0x0800,
        SPI=0x0400,
        INVALID_MODEC=0x0200,
        INVALID_MODEA=0x0100,
        TESTTARGET=0x0080,
        EMG=0x0060,  # 7700
        RCF=0x0040,  # 7600
        HIJ=0x0020,  # 7500
        MINIFUEL=0x0010,
        MEDICAL=0x0008,
        DOWNED=0x0018,
        INVALID_SPEED=0x0004,
        CALLSIGN=0x0002
    )
    return obj_description


# 使用示例
if __name__ == "__main__":
    object_description = create_object_description()
    print(object_description.GBS)
    print(object_description.ADDRESS)
    # 可以继续访问其他属性，例如：
    print(object_description.MODES)
    print(object_description.EMG)